package com.sakiko.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sakiko.mapper.UserMapper;
import com.sakiko.pojo.User;
import com.sakiko.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * projectName: com.sakiko.service.impl
 *
 * @author: Yang
 * description:
 * time: 2025/8/6 9:30
 */

@Service
// @Transactional
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public IPage<User> findUserByPage(IPage<User> page, User user) {
        return userMapper.queryUserByPage(page, user);
    }
}
